package com.cabrida.livestar.util;

import com.cabrida.livestar.model.Constants;

import android.content.Context;

/**
 */
public class LoginUtils {

	public static void setSession(Context con, String sessionId) {
		if (!StringUtils.isBlank(sessionId)) {
			SharedUtils.putString(con, Constants.SESSION, sessionId);
		}
	}

	public static String getSession(Context con) {
		String sessionId = SharedUtils.getString(con, Constants.SESSION);
		if (null == sessionId || "".equals(sessionId)) {
			return "";
		}
		return sessionId;
	}
}
